package com.liuyk.commonlib.network;

import com.liuyk.commonlib.network.request.BaseRequest;

/**
 * 网络出参接口
 * <p>
 * Created by liuyakui on 2020/1/17.
 */
public interface NetworkCallBack<T> {

    /**
     * 错误
     */
    void onError(BaseRequest request, ServerException e);

    /**
     * 成功
     */
    void onSuccess(BaseRequest request, T t);
}
